package com.atguigu.realtime.utils;

import redis.clients.jedis.Jedis;

/**
 * Created by Smexy on 2022/7/18
 */
public class RedisUtil {

    public static Jedis getJedis(){

        String host = PropertiesUtil.getProperty("redis.host");
        String port = PropertiesUtil.getProperty("redis.port");

        return new Jedis(host,Integer.parseInt(port));

    }

}
